//
//  AnswerAnalysisCell.m
//  JW_BasePorject
//
//  Created by JW on 2018/7/6.
//  Copyright © 2018年 JW. All rights reserved.
//

#import "AnswerAnalysisCell.h"


@interface AnswerAnalysisCell ()

@property (nonatomic,strong)UIView *smallView;

@property (nonatomic,strong)UILabel *titleLabel;




@end

@implementation AnswerAnalysisCell

- (void)addChildViews{
    [self.contentView addSubview:self.smallView];
    [self.contentView addSubview:self.titleLabel];
    
    
}


#pragma mark - property

- (UILabel *)titleLabel{
    if (_titleLabel == nil) {
        _titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(20, 5, 100, 20)];
        _titleLabel.text = @"参考解析";
    }
    return _titleLabel;
}

- (UIView *)smallView{
    if (_smallView == nil) {
        _smallView = [[UIView alloc] initWithFrame:CGRectMake(10, 5, 5, 20)];
        _smallView.backgroundColor = ZhuTiColor;
    }
    return _smallView;
}


#pragma mark - cell

+ (AnswerAnalysisCell *)cellWithTableView:(UITableView *)tableView{
    static NSString *ident = @"AnswerAnalysisCell";
    
    AnswerAnalysisCell *cell = [tableView dequeueReusableCellWithIdentifier:ident];
    if (!cell) {
        cell = [[AnswerAnalysisCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:ident];
        cell.selectionStyle = UITableViewCellSelectionStyleNone;
    }
    return cell;
}


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self addChildViews];
    }
    return  self;
}


@end
